package com.barcode;
import com.create.createqr;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

    private Button btn1,btn2;

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
            
            btn1 = (Button) this.findViewById(R.id.button1);
            btn2 = (Button) this.findViewById(R.id.button2);

            btn1.setOnClickListener(new OnClickListener(){
            	
            	public void onClick(View v){
            		Intent intent=new Intent(MainActivity.this,BarCodeActivity.class);
            		startActivity(intent);
            		
            	}
            	
            });
            btn2.setOnClickListener(new OnClickListener(){
            	
        		public void onClick(View v) {
        	 		Intent intent=new Intent(MainActivity.this,createqr.class);
            		startActivity(intent);
            	
            	}
            	
            });
        }
}